/* Modal.css */
:root {
  --modal-bg: #fff;
  --modal-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --primary-color: #646cff;
  --primary-hover: #535bf2;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

p {
  margin-bottom: 30px;
  color: #555;
  font-size: 1.1rem;
}

.open-modal-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0 40px;
  box-shadow: 0 4px 12px rgba(100, 108, 255, 0.3);
}

.open-modal-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(100, 108, 255, 0.4);
}

.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  width: 300px;
  box-shadow: var(--modal-shadow);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature-card p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Modal 样式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity var(--transition-speed) ease;
}

.modal-backdrop.closing {
  opacity: 0;
}

.modal-content {
  background: var(--modal-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--modal-shadow);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(1);
  transition: transform var(--transition-speed) ease;
}

.modal-backdrop.closing .modal-content {
  transform: scale(0.9);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #777;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 40px 30px 30px;
}

.modal-body h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.modal-body p {
  margin-bottom: 25px;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modal-buttons button:first-child {
  background: #f0f0f0;
  color: #555;
}

.modal-buttons button:first-child:hover {
  background: #e0e0e0;
}

.modal-buttons button.primary {
  background: var(--primary-color);
  color: white;
}

.modal-buttons button.primary:hover {
  background: var(--primary-hover);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card {
    width: 100%;
    max-width: 400px;
  }
  
  .modal-content {
    width: 95%;
  }
}